Optimal. Leaf size=236 \[ -\frac {4 e^5 (e \sin (c+d x))^{-5+m}}{a^3 d (5-m)}+\frac {e^5 \cos (c+d x) \, _2F_1\left (-\frac {5}{2},\frac {1}{2} (-5+m);\frac {1}{2} (-3+m);\sin ^2(c+d x)\right ) (e \sin (c+d x))^{-5+m}}{a^3 d (5-m) \sqrt {\cos ^2(c+d x)}}+\frac {3 e^5 \cos (c+d x) \, _2F_1\left (-\frac {3}{2},\frac {1}{2} (-5+m);\frac {1}{2} (-3+m);\sin ^2(c+d x)\right ) (e \sin (c+d x))^{-5+m}}{a^3 d (5-m) \sqrt {\cos ^2(c+d x)}}+\frac {7 e^3 (e \sin (c+d x))^{-3+m}}{a^3 d (3-m)}-\frac {3 e (e \sin (c+d x))^{-1+m}}{a^3 d (1-m)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.45, antiderivative size = 236, normalized size of antiderivative = 1.00, number of steps
used = 12, number of rules used = 7, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.304, Rules used = {3957, 2954,
2952, 2644, 14, 2657, 276} \begin {gather*} \frac {e^5 \cos (c+d x) (e \sin (c+d x))^{m-5} \, _2F_1\left (-\frac {5}{2},\frac {m-5}{2};\frac {m-3}{2};\sin ^2(c+d x)\right )}{a^3 d (5-m) \sqrt {\cos ^2(c+d x)}}+\frac {3 e^5 \cos (c+d x) (e \sin (c+d x))^{m-5} \, _2F_1\left (-\frac {3}{2},\frac {m-5}{2};\frac {m-3}{2};\sin ^2(c+d x)\right )}{a^3 d (5-m) \sqrt {\cos ^2(c+d x)}}-\frac {4 e^5 (e \sin (c+d x))^{m-5}}{a^3 d (5-m)}+\frac {7 e^3 (e \sin (c+d x))^{m-3}}{a^3 d (3-m)}-\frac {3 e (e \sin (c+d x))^{m-1}}{a^3 d (1-m)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 276
Rule 2644
Rule 2657
Rule 2952
Rule 2954
Rule 3957
Rubi steps
\begin {align*} \int \frac {(e \sin (c+d x))^m}{(a+a \sec (c+d x))^3} \, dx &=-\int \frac {\cos ^3(c+d x) (e \sin (c+d x))^m}{(-a-a \cos (c+d x))^3} \, dx\\ &=-\frac {e^6 \int \cos ^3(c+d x) (-a+a \cos (c+d x))^3 (e \sin (c+d x))^{-6+m} \, dx}{a^6}\\ &=-\frac {e^6 \int \left (-a^3 \cos ^3(c+d x) (e \sin (c+d x))^{-6+m}+3 a^3 \cos ^4(c+d x) (e \sin (c+d x))^{-6+m}-3 a^3 \cos ^5(c+d x) (e \sin (c+d x))^{-6+m}+a^3 \cos ^6(c+d x) (e \sin (c+d x))^{-6+m}\right ) \, dx}{a^6}\\ &=\frac {e^6 \int \cos ^3(c+d x) (e \sin (c+d x))^{-6+m} \, dx}{a^3}-\frac {e^6 \int \cos ^6(c+d x) (e \sin (c+d x))^{-6+m} \, dx}{a^3}-\frac {\left (3 e^6\right ) \int \cos ^4(c+d x) (e \sin (c+d x))^{-6+m} \, dx}{a^3}+\frac {\left (3 e^6\right ) \int \cos ^5(c+d x) (e \sin (c+d x))^{-6+m} \, dx}{a^3}\\ &=\frac {e^5 \cos (c+d x) \, _2F_1\left (-\frac {5}{2},\frac {1}{2} (-5+m);\frac {1}{2} (-3+m);\sin ^2(c+d x)\right ) (e \sin (c+d x))^{-5+m}}{a^3 d (5-m) \sqrt {\cos ^2(c+d x)}}+\frac {3 e^5 \cos (c+d x) \, _2F_1\left (-\frac {3}{2},\frac {1}{2} (-5+m);\frac {1}{2} (-3+m);\sin ^2(c+d x)\right ) (e \sin (c+d x))^{-5+m}}{a^3 d (5-m) \sqrt {\cos ^2(c+d x)}}+\frac {e^5 \text {Subst}\left (\int x^{-6+m} \left (1-\frac {x^2}{e^2}\right ) \, dx,x,e \sin (c+d x)\right )}{a^3 d}+\frac {\left (3 e^5\right ) \text {Subst}\left (\int x^{-6+m} \left (1-\frac {x^2}{e^2}\right )^2 \, dx,x,e \sin (c+d x)\right )}{a^3 d}\\ &=\frac {e^5 \cos (c+d x) \, _2F_1\left (-\frac {5}{2},\frac {1}{2} (-5+m);\frac {1}{2} (-3+m);\sin ^2(c+d x)\right ) (e \sin (c+d x))^{-5+m}}{a^3 d (5-m) \sqrt {\cos ^2(c+d x)}}+\frac {3 e^5 \cos (c+d x) \, _2F_1\left (-\frac {3}{2},\frac {1}{2} (-5+m);\frac {1}{2} (-3+m);\sin ^2(c+d x)\right ) (e \sin (c+d x))^{-5+m}}{a^3 d (5-m) \sqrt {\cos ^2(c+d x)}}+\frac {e^5 \text {Subst}\left (\int \left (x^{-6+m}-\frac {x^{-4+m}}{e^2}\right ) \, dx,x,e \sin (c+d x)\right )}{a^3 d}+\frac {\left (3 e^5\right ) \text {Subst}\left (\int \left (x^{-6+m}-\frac {2 x^{-4+m}}{e^2}+\frac {x^{-2+m}}{e^4}\right ) \, dx,x,e \sin (c+d x)\right )}{a^3 d}\\ &=-\frac {4 e^5 (e \sin (c+d x))^{-5+m}}{a^3 d (5-m)}+\frac {e^5 \cos (c+d x) \, _2F_1\left (-\frac {5}{2},\frac {1}{2} (-5+m);\frac {1}{2} (-3+m);\sin ^2(c+d x)\right ) (e \sin (c+d x))^{-5+m}}{a^3 d (5-m) \sqrt {\cos ^2(c+d x)}}+\frac {3 e^5 \cos (c+d x) \, _2F_1\left (-\frac {3}{2},\frac {1}{2} (-5+m);\frac {1}{2} (-3+m);\sin ^2(c+d x)\right ) (e \sin (c+d x))^{-5+m}}{a^3 d (5-m) \sqrt {\cos ^2(c+d x)}}+\frac {7 e^3 (e \sin (c+d x))^{-3+m}}{a^3 d (3-m)}-\frac {3 e (e \sin (c+d x))^{-1+m}}{a^3 d (1-m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 6.41, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {(e \sin (c+d x))^m}{(a+a \sec (c+d x))^3} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.11, size = 0, normalized size = 0.00 \[\int \frac {\left (e \sin \left (d x +c \right )\right )^{m}}{\left (a +a \sec \left (d x +c \right )\right )^{3}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {\left (e \sin {\left (c + d x \right )}\right )^{m}}{\sec ^{3}{\left (c + d x \right )} + 3 \sec ^{2}{\left (c + d x \right )} + 3 \sec {\left (c + d x \right )} + 1}\, dx}{a^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\cos \left (c+d\,x\right )}^3\,{\left (e\,\sin \left (c+d\,x\right )\right )}^m}{a^3\,{\left (\cos \left (c+d\,x\right )+1\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________